import request from '@/utils/request'

/**
 * 获取店铺列表
 * @param {*} options  {page,rows,shopName,type,isOpen}
 */
 export function getShopList(options) {
  return request({
    url: '/mg/Shop/GetShopList',
    method: 'get',
    params: options
  })
}

/**
 * 获取店铺详情
 * @param {*} options  {id}
 */
export function getShopInfo(options) {
  return request({
    url: '/mg/Shop/GetShopInfo',
    method: 'get',
    params: options
  })
}

/**
 * 设置开店、关店
 * @param {*} options  {id,isOpen}
 */
export function setOpenState(options) {
  return request({
    url: '/mg/Shop/SetOpenState',
    method: 'get',
    params: options
  })
}

/**
 * 更新经纬度
 * @param {*} options  {id,isOpen}
 */
export function updateGEOInfo(options) {
  return request({
    url: '/mg/Shop/UpdateShopGEOInfo',
    method: 'get',
    params: options
  })
}

/**
 * 自动识别营业执照号
 * @param {*} options  {shopid}
 */
export function discernLicense(options) {
  return request({
    url: '/mg/Shop/DiscernLicenseNumber',
    method: 'get',
    params: options
  })
}

/**
 * 审核店铺入驻 （拒绝只需要 id,ispass,reason)
 * @param {*} data  {id,longitude,latitude,isPass,reason,busLicenseNum}
 */
export function checkShopEntering(data) {
  return request({
    url: '/mg/Shop/CheckShopEntering',
    method: 'post',
    data
  })
}

/**
 * 获取教师列表
 * @param {*} options  {name,shopid,rows,page}
 */
export function getTeacherList(options) {
  return request({
    url: '/mg/Teacher/GetList',
    method: 'get',
    params: options
  })
}

/**
 * 获取教师列表
 * @param {*} options  {id}
 */
export function getTeacherInfo(options) {
  return request({
    url: '/mg/Teacher/GetInfo',
    method: 'get',
    params: options
  })
}

/**
 * 保存教师信息
 * @param {*} data 
 */
export function saveTeacherInfo(data){
  return request({
    url: '/mg/Teacher/SaveTeacher',
    method: 'post',
    data
  })
}

/**
 * 获取荣誉校长列表
 * @param {*} options  {nickName,phone,shopName,page,rows}
 */
export function getSpokerList(options) {
  return request({
    url: '/mg/Spoker/GetList',
    method: 'get',
    params: options
  })
}



/**
 * 获取荣誉校长信息
 * @param {*} options  {id}
 */
export function getSpokerInfo(options) {
  return request({
    url: '/mg/Spoker/GetDetails',
    method: 'get',
    params: options
  })
}

/**
 * 获取荣誉校长信息
 * @param {*} options  {id}
 */
export function getSpokerCustomList(options) {
  return request({
    url: '/mg/Spoker/GetCustomList',
    method: 'get',
    params: options
  })
}











